<!-- 后台 -->
<template>
  <div class="common-layout">
    <el-container>
      <el-aside
        :style="{
          width: !headData.isCollapse ? '230px' : '64px',
        }"
      >
        <!-- 侧边栏 -->
        <Aside />
      </el-aside>
      <el-container>
        <el-header>
          <!-- 头部 -->
          <Header />
        </el-header>
        <el-main>
          <RouterView />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import Aside from "@/components/aside.vue";
import Header from "@/components/navHeader.vue";
import { headStore } from "@/stores/headStore.js";
const headData = headStore();
</script>

<style lang="less" scoped>
.common-layout {
  height: 100vh;
  .el-container {
    height: 100%;
    color: #ff703c;
  }
}
/deep/ .el-header {
  border: 1px solid #f4f4f4;
  height: 60px !important;
  padding: 0 !important;
}
/deep/ .el-aside {
  transition: ease-in-out 0.3s;
}

/deep/ .el-main {
  background: #f6f6f6;
}
</style>
